package com.sicnustray.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 自定义日志记录表
 * </p>
 *
 * @author yl
 * @since 2022-11-17
 */
@Getter
@Setter
  @ApiModel(value = "Logging对象", description = "自定义日志记录表")
public class Logging implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("内容")
      private String message;

      @ApiModelProperty("级别")
      private String levelString;

     @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
      @ApiModelProperty("时间")
      private LocalDateTime createdTime;

      @ApiModelProperty("全类名")
      private String loggerName;


}
